import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        loginMsg: null,
        loginState: null,
        // unifiedUserUrl: 'http://192.168.31.157:10041',
        // unifiedUserUrl: 'http://192.168.31.170:10031',
        // unifiedUserUrl: 'http://192.168.31.181:10031',
        unifiedUserUrl: 'http://192.168.31.219:10031',
        unifiedUserUrl10011: 'http://192.168.31.219:10011'
            // unifiedUserUrl: 'http://192.168.31.200:10041',
            // unifiedUserUrl: 'http://192.168.31.200:10031',
            // unifiedUserUrl10011: 'http://192.168.31.200:10011'
    },
    modules: {
        user
    },
    getters
})

export default store